package uuid

import (
	"github.com/google/uuid"
)

type GoogleUUID struct{}

func NewGoogleUUID() *GoogleUUID { return &GoogleUUID{} }

func (m *GoogleUUID) Uuid() string {
	// 生成UUID
	uuid := uuid.New()
	return uuid.String()
}

func (m *GoogleUUID) Id() uint32 {
	uuid := uuid.New()
	return uuid.ID()
}
